<?php 
		$colleageid=$session->read("colleageid");
		$user=$session->read('User');
		$isflag=$action->checkPermissions($user,$colleageid);
?>
<?php if($isflag){?>
<?php echo $html->css('kindeditor/');?>
<?php echo $javascript->link('kindeditor/kindeditor.js');?>
<?php echo $javascript->link('kindeditor/lang/zh_CN.js');?>
<?php echo $javascript->link('kindeditor/plugins/code/prettify.js');?>

<script>
KindEditor.ready(function(K) 
{
	<?php 
	echo $fck->load('CgDev.describe');
	echo $fck->load('CgDev.platform');
	echo $fck->load('CgDev.researchcenter');
	echo $fck->load('CgDev.keylab');
	echo $fck->load('CgDev.keyequipments');
	echo $fck->load('CgDev.firstinfo');
	echo $fck->load('CgDev.secondinfo');
	echo $fck->load('CgDev.thirdinfo');
	echo $fck->load('CgDev.forthinfo');
	echo $fck->load('CgDev.fifthinfo');
?>
prettyPrint();
});

function drop_up_down(slide_btn) 
{
	var infodisplay=$(slide_btn).parent().parent().next().attr("style");
	if(infodisplay==null)
	{
		$(slide_btn).parent().parent().next().attr("style","display:none");
		$(slide_btn).parent().parent().next().next().attr("style","display:block");
		$(slide_btn).parent().next().attr("style","display:none");
	}
	else if(infodisplay.indexOf("block")>-1)
	{
		$(slide_btn).parent().parent().next().attr("style","display:none");
		$(slide_btn).parent().parent().next().next().attr("style","display:block");
		$(slide_btn).parent().next().attr("style","display:none");
	}
	else
	{
		$(slide_btn).parent().parent().next().attr("style","display:block");
		$(slide_btn).parent().parent().next().next().attr("style","display:none");
		$(slide_btn).parent().next().attr("style","display:block");
	}
	
	$(slide_btn).toggleClass("active");
	if($(slide_btn).text()=="取消编辑")
	 {
		$(slide_btn).text("编辑");
	} 
	else 
	{
		$(slide_btn).text("取消编辑");
	}
}
</script>
<?php }?>

<?php echo $form -> create('devs', array('url' => '/colleages/editdev/edit','type'=> 'post','name'=>'colleagedev') ); ?>	

<div class="right_side_operate_area">
	<div class="right_side_title left">
		<h2>
				<?php 
					$colleagename=$session->read("colleagename");
					echo $html->link($colleagename,"/colleages/showcolleageinfo/".$colleageid);
				?>
		</h2>
		<div class="clear"></div>
	</div>
	
    <div class="right back_btn users_form">
        <?php  echo $form->hidden('CgDev.id'); ?>
    </div>
    <div class="clear"></div>
</div>

																																<!--主题显示区-->
<div class="right_side_scollbar">
    <div class="detail_info_panel">
    	<div class="corp_info_panel">
    			
    			<!--2.1 高校介绍块 开始-->
    			<div class="category_file_block">
    			  <!--第一块-->
		 			<div class="category_title">
			 				<div class="left">高校介绍</div>
				 			<?php if($isflag){?>
						 			<div class="right title_drop_u_d">
						 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
						 			</div>
						 			<div class="right users_form" style="display:none;">
						 				<input type="submit" value="保存"/>
						 			</div>
				 			<?php }?>
			 				<div class="clear"></div>
			 		</div>
			 		
			 		<!--第二块-->
			 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
				 		<?php
				 			echo $form->textarea('CgDev.describe',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'describe'));
				 		?>
			 		</div>
			 		
			 		<!--第三块-->
			 		<div class="file_list_panel">
			 			<?php echo $str->setinfo($form->value('CgDev.describe')); ?>
			 		</div>
		 		
		 	</div>
		 	<!--2.1 高校介绍块 结束-->
		 	
		 	
		 	<!--2.2 平台概况块 开始-->
    			<div class="category_file_block">
    			  <!--第一块-->
		 			<div class="category_title">
			 				<div class="left">平台概况</div>
				 			<?php if($isflag){?>
						 			<div class="right title_drop_u_d">
						 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
						 			</div>
						 			<div class="right users_form" style="display:none;">
						 				<input type="submit" value="保存"/>
						 			</div>
				 			<?php }?>
			 				<div class="clear"></div>
			 		</div>
			 		
			 		<!--第二块-->
			 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
				 		<?php
				 			echo $form->textarea('CgDev.platform',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'platform'));
				 		?>
			 		</div>
			 		
			 		<!--第三块-->
			 		<div class="file_list_panel">
			 			<?php echo $str->setinfo($form->value('CgDev.platform')); ?>
			 		</div>
		 		
		 	</div>
		 	<!--2.2 平台概况块 结束-->
		 	
		 	<!--2.3 研究中心块 开始-->
    			<div class="category_file_block">
    			  <!--第一块-->
		 			<div class="category_title">
			 				<div class="left">研究中心</div>
				 			<?php if($isflag){?>
						 			<div class="right title_drop_u_d">
						 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
						 			</div>
						 			<div class="right users_form" style="display:none;">
						 				<input type="submit" value="保存"/>
						 			</div>
				 			<?php }?>
			 				<div class="clear"></div>
			 		</div>
			 		
			 		<!--第二块-->
			 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
				 		<?php
				 			echo $form->textarea('CgDev.researchcenter',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'researchcenter'));
				 		?>
			 		</div>
			 		
			 		<!--第三块-->
			 		<div class="file_list_panel">
			 			<?php echo $str->setinfo($form->value('CgDev.researchcenter')); ?>
			 		</div>
		 		
		 	</div>
		 	<!--2.3 研究中心块 结束-->
		 	
		 	<!--2.4 重点实验室块 开始-->
    			<div class="category_file_block">
    			  <!--第一块-->
		 			<div class="category_title">
			 				<div class="left">重点实验室</div>
				 			<?php if($isflag){?>
						 			<div class="right title_drop_u_d">
						 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
						 			</div>
						 			<div class="right users_form" style="display:none;">
						 				<input type="submit" value="保存"/>
						 			</div>
				 			<?php }?>
			 				<div class="clear"></div>
			 		</div>
			 		
			 		<!--第二块-->
			 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
				 		<?php
				 			echo $form->textarea('CgDev.keylab',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'keylab'));
				 		?>
			 		</div>
			 		
			 		<!--第三块-->
			 		<div class="file_list_panel">
			 			<?php echo $str->setinfo($form->value('CgDev.keylab')); ?>
			 		</div>
		 		
		 	</div>
		 	<!--2.4 重点实验室块 结束-->
		 	
		 	<!--2.5 重大仪器设备块 开始-->
    			<div class="category_file_block">
    			  <!--第一块-->
		 			<div class="category_title">
			 				<div class="left">重大仪器设备</div>
				 			<?php if($isflag){?>
						 			<div class="right title_drop_u_d">
						 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
						 			</div>
						 			<div class="right users_form" style="display:none;">
						 				<input type="submit" value="保存"/>
						 			</div>
				 			<?php }?>
			 				<div class="clear"></div>
			 		</div>
			 		
			 		<!--第二块-->
			 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
				 		<?php
				 			echo $form->textarea('CgDev.keyequipments',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'keyequipments'));
				 		?>
			 		</div>
			 		
			 		<!--第三块-->
			 		<div class="file_list_panel">
			 			<?php echo $str->setinfo($form->value('CgDev.keyequipments')); ?>
			 		</div>
		 		
		 	</div>
		 	<!--2.5 重大仪器设备块 结束-->
		 	</div><!--左侧区域结束-->
		 	
		 	<!--主体区域右侧面板-->
		 	<div class="corp_info_panel">
		 			
		 		<!--2.6 自定义1区域块 开始-->
		 		<div class="category_file_block">
				 		<div class="category_title">
				 			<div class="left">
					 			<?php 
						 			$firsttitle=$form->value('CgDev.firsttitle');
						 			if(empty($firsttitle))
						 			{
						 				$firsttitle="自定义1" ;
					 				}
					 				echo $firsttitle;
					 			?>
				 			</div>
				 			<?php if($isflag){?>
					 			<div class="right title_drop_u_d">
					 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
					 			</div>
					 			<div class="right users_form" style="display:none;">
					 				<input type="submit" value="保存"/>
					 			</div>
				 			<?php }?>
				 			<div class="clear"></div>
				 		</div>
				 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
					 		<div class="sel_def_title">
					 			<label>标题：</label><?php echo $form->text('CgDev.firsttitle'); ?>
					 		</div>
					 		<?php
					 			echo $form->textarea('CgDev.firstinfo',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'firstinfo'));
					 		?>
				 		</div>
				 		<div class="file_list_panel">
				 			<?php echo $str->setinfo($form->value('CgDev.firstinfo')); ?>
				 		</div>
		 	</div>
		 			<!--2.6 自定义1区域块 结束-->
		 	
		 	<!--2.7 自定义2区域块 开始-->
		 		<div class="category_file_block">
				 		<div class="category_title">
				 			<div class="left">
					 			<?php 
						 			$secondtitle=$form->value('CgDev.secondtitle');
						 			if(empty($secondtitle))
						 			{
						 				$secondtitle="自定义2" ;
					 				}
					 				echo $secondtitle;
					 			?>
				 			</div>
				 			
				 			<?php if($isflag){?>
					 			<div class="right title_drop_u_d">
					 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
					 			</div>
					 			<div class="right users_form" style="display:none;">
					 				<input type="submit" value="保存"/>
					 			</div>
				 			<?php }?>
				 			<div class="clear"></div>
				 		</div>
				 		
				 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
					 		<div class="sel_def_title">
					 			<label>标题：</label><?php echo $form->text('CgDev.secondtitle'); ?>
					 		</div>
					 		<?php
					 			echo $form->textarea('CgDev.secondinfo',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'secondinfo'));
					 		?>
				 		</div>
				 		<div class="file_list_panel">
				 			<?php echo $str->setinfo($form->value('CgDev.secondinfo')); ?>
				 		</div>
		 	</div>
		 	<!--2.7 自定义2区域块 结束-->
		 	
		 	<!--2.8 自定义3区域块 开始-->
		 		<div class="category_file_block">
				 		<div class="category_title">
				 			<div class="left">
					 			<?php 
						 			$thirdtitle=$form->value('CgDev.thirdtitle');
						 			if(empty($thirdtitle))
						 			{
						 				$thirdtitle="自定义3" ;
					 				}
					 				echo $thirdtitle;
					 			?>
				 			</div>
				 			<?php if($isflag){?>
					 			<div class="right title_drop_u_d">
					 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
					 			</div>
					 			<div class="right users_form" style="display:none;">
					 				<input type="submit" value="保存"/>
					 			</div>
				 			<?php }?>
				 			<div class="clear"></div>
				 		</div>
				 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
					 		<div class="sel_def_title">
					 			<label>标题：</label><?php echo $form->text('CgDev.thirdtitle'); ?>
					 		</div>
					 		<?php
					 			echo $form->textarea('CgDev.thirdinfo',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'thirdinfo'));
					 		?>
				 		</div>
				 		<div class="file_list_panel">
				 			<?php echo $str->setinfo($form->value('CgDev.thirdinfo')); ?>
				 		</div>
		 	</div>
		 	<!--2.8 自定义3区域块 结束-->
		 	
		 	<!--2.9 自定义4区域块 开始-->
		 		<div class="category_file_block">
				 		<div class="category_title">
				 			<div class="left">
					 			<?php 
						 			$forthtitle=$form->value('CgDev.forthtitle');
						 			if(empty($forthtitle))
						 			{
						 				$forthtitle="自定义4" ;
					 				}
					 				echo $forthtitle;
					 			?>
				 			</div>
				 			<?php if($isflag){?>
					 			<div class="right title_drop_u_d">
					 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
					 			</div>
					 			<div class="right users_form" style="display:none;">
					 				<input type="submit" value="保存"/>
					 			</div>
				 			<?php }?>
				 			<div class="clear"></div>
				 		</div>
				 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
					 		<div class="sel_def_title">
					 			<label>标题：</label><?php echo $form->text('CgDev.forthtitle'); ?>
					 		</div>
					 		<?php
					 			echo $form->textarea('CgDev.forthinfo',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'forthinfo'));
					 		?>
				 		</div>
				 		<div class="file_list_panel">
				 			<?php echo $str->setinfo($form->value('CgDev.forthinfo')); ?>
				 		</div>
		 	</div>
		 	<!--2.9 自定义4区域块 结束-->
		 	
		 	<!--2.10 自定义5区域块 开始-->
		 		<div class="category_file_block">
				 		<div class="category_title">
				 			<div class="left">
					 			<?php 
						 			$fifthtitle=$form->value('CgDev.fifthtitle');
						 			if(empty($fifthtitle))
						 			{
						 				$fifthtitle="自定义5" ;
					 				}
					 				echo $fifthtitle;
					 			?>
				 			</div>
				 			<?php if($isflag){?>
					 			<div class="right title_drop_u_d">
					 				<a href="javascript:void(0);" onclick="drop_up_down(this)">编辑</a>
					 			</div>
					 			<div class="right users_form" style="display:none;">
					 				<input type="submit" value="保存"/>
					 			</div>
				 			<?php }?>
				 			<div class="clear"></div>
				 		</div>
				 		<div class="file_list_panel file_list_edit_panel" style="display:none;">
					 		<div class="sel_def_title">
					 			<label>标题：</label><?php echo $form->text('CgDev.fifthtitle'); ?>
					 		</div>
					 		<?php
					 			echo $form->textarea('CgDev.fifthinfo',array('style'=>'width:100%;height:300px;visibility:hidden;','name'=>'fifthinfo'));
					 		?>
				 		</div>
				 		<div class="file_list_panel">
				 			<?php echo $str->setinfo($form->value('CgDev.fifthinfo')); ?>
				 		</div>
		 	</div>
		 	<!--2.10 自定义5区域块 结束-->
		 	
		 	
    				
    		<div class="clear"></div>
    	</div>
    	<div class="clear"></div>
    </div>
 </div>